#
# Be sure to run `pod lib lint RACObjc.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'RACObjc'
  s.summary          = '基于ReacticeCocoa 2.5版本.'
  s.version          = '0.0.4'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'liyang' => '18638835474@163.com' }
  s.homepage         = 'https://gitee.com/LYRepoDemo/RACObjcDemo'
  s.platform         = :ios, '8.0'
  s.ios.deployment_target = '8.0'
  s.source           = { :git => 'https://gitee.com/LYRepoDemo/RACObjcDemo', :tag => s.version.to_s }
  
  s.source_files = 'RACObjc/Classes/ReactiveCocoa.h'
  s.public_header_files = 'RACObjc/Classes/ReactiveCocoa.h'
  
  
  non_arc_files = 'RACObjc/Classes/no-arc/**/*.{h,m}'
  
  s.ios.exclude_files = non_arc_files
  
  s.subspec 'no-arc' do |ss|
      ss.source_files = non_arc_files
      ss.public_header_files = 'RACObjc/Classes/no-arc/**/*.h'
      ss.requires_arc = false
  end
  
  s.subspec 'Core' do |ss|
      ss.source_files = 'RACObjc/Classes/Core/**/*.{h,m}'
      ss.public_header_files = 'RACObjc/Classes/Core/**/*.h'
      ss.dependency 'RACObjc/no-arc'
  end
  
  s.subspec 'UI' do |ss|
      ss.source_files = 'RACObjc/Classes/UI/**/*.{h,m}'
      ss.public_header_files = 'RACObjc/Classes/UI/**/*.h'
      ss.dependency 'RACObjc/Core'
  end
  
  # s.resource_bundles = {
  #   'RACObjc' => ['RACObjc/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
